import Datastore from 'nedb'
import path from 'path'
import { remote } from 'electron'

console.log('path', remote.app.getPath('userData'))

let db = {}
db.buildconfig = new Datastore({
  autoload: true,
  filename: path.join(remote.app.getPath('userData'), 'db/buildconfig.db')
})

export default db
